﻿/*****************************************介绍*****************************************
 * 作者：24531
 * 创建时间：2025-09-04 23:23:40
 * 功能：界面【AddTimePanel】的View
        1、负责收集所有控件
**************************************************************************************/

using Game.UI.GamePanel;

namespace Game.UI.AddTimePanel
{
    public class AddTimePanelView : ItemPanelView
    {
        public const string PANEL_KEY = "Game_UI_AddTimePanel_AddTimePanel_Key";

        protected override ETriggerAdType GetAdTriggerType() => ETriggerAdType.AddTime;

        protected override string GetPanelKey() => PANEL_KEY;

        protected override void DistributeAdRewards()
        {
            GameDataMgr.Instance.AddTimeRemainCount = GameDataMgr.Instance.AddTimeRemainCount + 1;
        }

        protected override int GetNeedCoins() => BaseDataMgr.Instance.Cfg.props.time.cost;
    }
}